#include<vector>
#include<algorithm>
using namespace std;
class Solution {
public:
    int inventoryManagement(vector<int>& stock) {
        sort(stock.begin(), stock.end());
        int mid = (stock.size()) >> 1;
        return stock[mid];
    }
};